<?php
namespace app\index\controller;

use think\facade\Cookie;
use think\facade\Session;

class Index extends Common
{
    /**
     * 主页面遍历
     * @return mixed
     */
    public function index()
    {
        $userInfo = Session::get("userClass" . Cookie::get("userId"));
        $data = Session::get("userInfo") ?? 0;
        $this->assign("data",$data);
        $this->assign("userInfo",$userInfo);
        return $this->fetch();
    }
}
